Skip to content

ci(amplify): comment the branch preview link on feat and fix PRs - #1313

Merged
JamieRuderman merged 2 commits into
mainfrom
feat/amplify-preview-comment
Nov 10, 2026
Merged

JamieRuderman merged 2 commits into
mainfrom
feat/amplify-preview-comment

Conversation

@JamieRuderman

Copy link
Copy Markdown
Member

Changes

Since #1283 moved Amplify to branch previews, PRs no longer get a link: branch previews don't comment the way pull request previews did. This workflow posts the branch preview address once when a feat/ or fix/ PR is opened or reopened.

  • The address is <branch with / as ->.d20k671nqqv4kl.amplifyapp.com, the same one Amplify autodetects.
  • Fork PRs are skipped, matching which branches Amplify deploys.
  • A marker in the comment stops repeat posts on reopen.
  • It uses pull_request, not pull_request_target, so no fork code ever runs with a write token.

@github-actions

Copy link
Copy Markdown

Amplify branch preview (ready once the build finishes): https://feat-amplify-preview-comment.d20k671nqqv4kl.amplifyapp.com

@JamieRuderman
JamieRuderman merged commit a892f50 into main Nov 10, 2026
7 checks passed
@JamieRuderman
JamieRuderman deleted the feat/amplify-preview-comment branch November 10, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant